package cn.tedu.charging.order.dao.repository;

import cn.tedu.charging.order.pojo.po.ChargingBillFailPO;
import cn.tedu.charging.order.pojo.po.ChargingBillSuccessPO;

public interface OrderRepository {

    /**
     * 更新充电中的订单状态为 异常结束
     * @param orderNo
     */
    void updateOrderStatusFromProcess2ExceptionEnd(String orderNo);

    void saveSuccessOrder(ChargingBillSuccessPO chargingBillSuccessPO);

    void saveFailOrder(ChargingBillFailPO chargingBillFailPO);
    //9.2 自检任务，判断数据库中有没有订单
    ChargingBillSuccessPO getSuccessOrder(String orderNo);

    ChargingBillFailPO getFailOrder(String orderNo);
    //9.3 增加
    void updateOrderDeviceInfo(String orderNo, int gunId);
}
